home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir26 / epi601_2.zip / FILES07.EXE / REPORT.PGM < prev    next >
Text File  |  1994-08-22  |  2KB  |  57 lines

  1. cls
  2. ECHO    The REPORT command specifies a file with a name ending in .RPT,
  3. ECHO    In our example TABLE2.RPT looks like this:
  4. ?Press <Enter> to see the .RPT file?
  5. Type TABLE2.RPT
  6. ECHO    You can examine the file by pressing <PgUp>.  Then press <Enter>
  7. ECHO    to READ the data file before running the report.
  8. ?Press <Enter> to READ SUMFILE.REC. ?
  9. READ SUMFILE.REC
  10. cls
  11. ECHO    Now the command REPORT TABLE2.RPT will produce the report
  12. ECHO
  13. ECHO    Press <Enter> to do REPORT TABLE2.RPT
  14. ?Epi> ?
  15. REPORT TABLE2.RPT
  16. ECHO    Use <PgUp> to scroll up and see the report, then press any key
  17. ECHO    to continue.
  18. CLS
  19. ?Epi> ?
  20. ECHO    The first report used the simple mechanism of creating an
  21. ECHO    invisible table in memory with several variables, and then
  22. ECHO    placing the values for those variables wherever desired on
  23. ECHO    the screen by referring to the values within square brackets.
  24. ECHO    Thus [ALAMEDA, MEASLES] puts the number of cases of measles
  25. ECHO    in ALAMEDA county beginning at the location of the first square
  26. ECHO    bracket, and [ALAMEDA, ] refers to all cases from ALAMEDA
  27. ECHO    regardless of disease.  [ , ] indicates cases from all counties
  28. ECHO    for all diseases, i.e., the grand total of all cases.
  29. ECHO
  30. ?Press any key to continue ?
  31. ECHO    Reports can also contain commands such as FOREACH and IF that
  32. ECHO    provide power to generate large reports from a relatively
  33. ECHO    small .RPT file, and to include conditional statements
  34. ECHO    that provide a modest level of "intelligence" in the report.
  35. ECHO    The following report demonstrates the use of the FOREACH
  36. ECHO    command.  The IF command is used within the report called
  37. ECHO    TABLE 1 in the NETSS menu in the SURVEILLANCE example, accessed
  38. ECHO    from the main EPI 6 menu.
  39. ECHO
  40. cls
  41. ECHO    The report file DISEASE.RPT looks like this:
  42. ?Press <Enter> to see the .RPT file?
  43. Type DISEASE.RPT
  44. ECHO    You can examine the file by pressing <PgUp>.  Then press <Enter>
  45. ECHO    to READ the data file before running the report.
  46. ?Press <Enter> to READ DISEASE.REC. ?
  47. READ DISEASE.REC
  48. cls
  49. ECHO    Now the command REPORT DISEASE.RPT will produce the report
  50. ECHO    Press <Enter> to do REPORT DISEASE.RPT
  51. ?Epi> ?
  52. REPORT DISEASE.RPT
  53. ECHO    Use <PgUp> to scroll up and see the report, then press any key
  54. ECHO    to leave ANALYSIS
  55. ?Epi> ?
  56. QUIT
  57.